package com.xhkj.shirodemo.pojo;


public class UserRole {

  private Integer userRoleId;
  private Integer userId;
  private Integer roleId;
  private User user;
  private Role role;

  public UserRole() {
  }

  public UserRole(Integer userId, Integer roleId) {
    this.userId = userId;
    this.roleId = roleId;
  }

  public UserRole(User user, Role role) {
    this.user = user;
    this.role = role;
  }

  public UserRole(Integer userId, Integer roleId, User user, Role role) {
    this.userId = userId;
    this.roleId = roleId;
    this.user = user;
    this.role = role;
  }

  public Integer getUserRoleId() {
    return userRoleId;
  }

  public void setUserRoleId(Integer userRoleId) {
    this.userRoleId = userRoleId;
  }


  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }


  public Integer getRoleId() {
    return roleId;
  }

  public void setRoleId(Integer roleId) {
    this.roleId = roleId;
  }

  @Override
  public String toString() {
    return "UserRole{" +
            "userRoleId=" + userRoleId +
            ", userId=" + userId +
            ", roleId=" + roleId +
            ", user=" + user +
            ", role=" + role +
            '}';
  }
}
